<?php


namespace app\web\controller;


use app\api\controller\v2\Auth;

class Question extends Auth
{
    /**
     * @param string activity 问题ID
     * @return void
     */
    public function index()
    {
        $activityId = input('activity/s', '');

        $uen = $this->user['uen'] ?? '';
        $url = 'https://www.wjx.cn/m/' . $activityId . '.aspx?sojumpparm=' . $uen;
//        header('location:' . $url);
        $title = '用户调研问卷';

        echo '<html><head><meta http-equiv="Content-Language" content="zh-CN"><meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=utf-8"><meta http-equiv="refresh"
content="0;url=' . $url . '"><title>' . $title . '</title></head><body><script>window.location="' . $url . '";</script></body></html>';
        exit();
    }
}
